package nl.boelen.game.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Utils {

    public static void LOG(int number) {
        LOG("" + number);
    }

    public static void LOG(int[] array) {
        String s = "";
        for (int i = 0; i < array.length; i++) {
            s += array[i] + " ";
        }
        LOG(s);
    }

    public static void LOG(int[][] array) {
        String s = "";
        for (int i = 0; i < array.length; i++) {
            s = "";
            for (int j = 0; j < array[0].length; j++) {
                s += array[i][j] + " ";
            }
            LOG(s);
        }
    }

    public static void LOG(String message) {
        System.out.println(getTime() + message);
    }

    public static String getTime() {
        String time;
        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
        time = "[" + sdf.format(new Date()) + "] ";
        return time;
    }

}
